﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public class Dcms_CommentBLL
    {
        private IDcms_CommentDAL rOp = Dcms.DALFactory.DALFactory.CreateDcms_Comment();

        public Dcms_CommentModel AddModel(Dcms_CommentModel model)
        {
            return this.rOp.AddModel(model);
        }

        public void DeleteModelByID(int ID)
        {
            this.rOp.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.rOp.GetDataCount(SqlStr);
        }

        public IList<Dcms_CommentModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.rOp.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public Dcms_CommentModel GetModelByID(int ID)
        {
            return this.rOp.GetModelByID(ID);
        }

        public IList<Dcms_CommentModel> GetModelList()
        {
            return this.rOp.GetModelList();
        }

        public Dcms_CommentModel Update(Dcms_CommentModel model)
        {
            return this.rOp.Update(model);
        }
    }
}

